<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>园区项目管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/creatjobmanage/creatPartProject/">园区项目列表</a></li>
		<shiro:hasPermission name="creatjobmanage:creatPartProject:edit"><li><a href="${ctx}/creatjobmanage/creatPartProject/form">园区项目添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="creatPartProject" action="${ctx}/creatjobmanage/creatPartProject/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>提交者姓名：</label>
				<form:select path="upId" class="input-medium required">
					<form:option value="" label=""/>
					<form:options items="${creatPartProjects}" itemLabel="username" itemValue="upId" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>项目名称：</label>
				<form:select path="partId" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${creatPartProjects}" itemLabel="partName" itemValue="partId" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>合作伙伴：</label>
				<form:input path="partner" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label style="width: 100px">个人自有资金：</label>
				<form:input path="individualownfunds" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label style="width: 100px">个人需要贷款：</label>
				<form:input path="personalneedloan" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>报名状态：</label>
				<form:select path="enrollStatus" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('job_auditing')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>提交时间：</label>
				<input name="beginCreateDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${creatPartProject.beginCreateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> -
				<input name="endCreateDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${creatPartProject.endCreateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>学号</th>
				<th>提交者姓名</th>
				<th>项目名称</th>
				<th>合作伙伴</th>
				<th>个人自有资金</th>
				<th>个人需要贷款</th>
				<th>报名状态</th>
				<th>提交时间</th>
				<shiro:hasPermission name="creatjobmanage:creatPartProject:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="creatPartProject">
			<tr>
				<td>
						${creatPartProject.stuId}
				</td>
				<td><a href="${ctx}/creatjobmanage/creatPartProject/form?id=${creatPartProject.id}">
					${creatPartProject.username}
				</a></td>
				<td>
					${creatPartProject.partName}
				</td>
				<td>
					${creatPartProject.partner}
				</td>
				<td>
					${creatPartProject.individualownfunds}
				</td>
				<td>
					${creatPartProject.personalneedloan}
				</td>
				<td>
						${fns:getDictLabel(creatPartProject.enrollStatus, 'job_auditing', creatPartProject.id)}
				</td>
				<td>
					<fmt:formatDate value="${creatPartProject.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<shiro:hasPermission name="creatjobmanage:creatPartProject:edit"><td>
    				<a href="${ctx}/creatjobmanage/creatPartProject/form?id=${creatPartProject.id}">修改</a>
					<a href="${ctx}/creatjobmanage/creatPartProject/status?id=${creatPartProject.id}" onclick="return confirmx('确认要审核园区项目吗？', this.href)">审核</a>
					<a href="${ctx}/creatjobmanage/creatPartProject/delete?id=${creatPartProject.id}" onclick="return confirmx('确认要删除该园区项目吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>